<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<script type="text/javascript" src="scripts/boot.js"></script>
</head>
<body style="border: 0px; margin: 0px; padding: 0px;">
<div class="mini-toolbar" style="border-bottom:0;padding:0px;">
    <table style="width:100%;">
        <tr>
            <td style="width:100%;">
            	选择时间段：
        		<input id="start_time" class="mini-monthpicker" format="yyyy-MM" tooltip="请选择开始日期" showClose="true" oncloseclick="clearT" allowInput="false" style="width:100px;"/>
        		&nbsp;—&nbsp;
        		<input id="end_time" class="mini-monthpicker" format="yyyy-MM" tooltip="请选择截止日期" showClose="true" oncloseclick="clearT" allowInput="false" style="width:100px;"/>
            </td>
            <td style="white-space:nowrap;">
				<a class="mini-button" iconCls="icon-search" onclick="search()">查询</a>
            </td>
        </tr>
    </table>
</div>
<div id="datagrid1" class="mini-datagrid " idField="id" pageSize="20"
	url="employee_performance_view.do" style="width:100%;height:94%;">
	<div property="columns">
		<div type="indexcolumn"></div>
		<div field="platformName" width="80" headerAlign="center" align="center">中心名称</div>
		<div field="groupName" width="80" headerAlign="center" align="center">组名称</div>
		<div field="userName" width="80" headerAlign="center" align="center">员工姓名</div>
		<div field="countOrders" width="40" headerAlign="center" align="center">成单量</div>
		<div field="orderSumMoney" width="40" headerAlign="center" align="center">成单总金额</div>
	</div>
</div>

<script type="text/javascript">
mini.parse();
var grid = mini.get("datagrid1");
grid.load();
function search(){
	var startTime = mini.get("start_time").getFormValue();
	var endTime = mini.get("end_time").getFormValue();
	grid.load({startTime: startTime, endTime: endTime});
}
function clearT(e){
	e.sender.setValue('');
}
</script>
</body>
</html>